import request from '../utils/request'

export function shopDetail (data) {
	return request(data, '/plat/Shop/shop_detailed').then(res => res)
}
export function AreaList (data) {//店铺列表
	return request(data, '/plat/Shop/area').then(res => res)
}
export function typeIndex (data) {//店铺列表经纬度
	return request(data, '/plat/Shop/type_index').then(res => res)
}
export function orderType (data) {//店铺列表 好评
	return request(data, '/plat/Shop/order_type').then(res => res)
}
export function Region (data) {//店铺列表 区镇 
	return request(data, '/plat/Shop/region').then(res => res)
}
export function AttriBute (data) {
	return request(data, '/plat/Shop/attribute').then(res => res)
}

export function ProductInt (data) {
	return request(data, '/plat/Shop/product_introduct').then(res => res)
}

export function shopIndex (data) {
	return request(data, '/plat/Shop/index').then(res => res)
}

export function OnlinePro (data) {
	return request(data, '/plat/shop/show').then(res => res)
}

export function OnlineAttr (data) {
	return request(data, '/plat/Shop/attribute').then(res => res)
}

export function  onLineCreate (data, id) {
	return request(data, '/weixinpl/city_area/shop/shoporder.php?customer_id=' + id).then(res => res)
}

export function shopOrders (data, id) {
	return request(data, "/weixinpl/city_area/shop/shopordera.php?customer_id=" + id).then(res => res)
}

export function getAllShop (data) {
	return request(data, '/plat/Shop/all_shop').then(res => res)
}

export function SlideShow (data) {
	return request(data, "/smallroutine/program/sildeShow").then(res => res)
}

export function videoPay (data) {
	return request(data, "/api/order/video_order").then(res => res)
}

export function payMoney (data) {
	return request(data, "/api/order/PayMoney").then(res => res)
}

export function ReadMe (data) { 
	return request(data, "/smallroutine/program/reading_volume").then(res => res)
}

export function VideoComment (data) {
	return request(data, "/smallroutine/Program/video_comment").then(res => res)
}